<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li>
                    <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/med/orgVsProvince/index')">组织机构与省份对照列表</a>
                </li>
                <li class="active">
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/med/orgVsProvince/form')">
                        <c:choose>
                            <c:when test="${orgVsProvince.id==''|| orgVsProvince.id==null}">
                                组织机构与省份对照添加
                            </c:when>
                            <c:otherwise>组织机构与省份对照修改</c:otherwise>
                        </c:choose>
                    </a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="col-lg-12">
                        <form:form id="inputForm" data-parsley-validate="" modelAttribute="orgVsProvince" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/med/orgVsProvince/save','${ctx}/med/orgVsProvince/index');" method="post" class="form-horizontal">
                            <form:hidden path="id"/>
                                <%--<div class="form-group">--%>
                                    <%--<label class="col-sm-2 control-label">主键：</label>--%>
                                    <%--<div class="col-sm-4">--%>
                                        <%--<form:input path="id" htmlEscape="false" class="form-control"  maxlength="64" />--%>
                                    <%--</div>--%>
                                <%--</div>--%>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">组织机构</label>
                                    <div class="col-sm-4">
                                        <form:select path="orgId" itemLabel="label" itemValue="value"  class="form-control" data-parsley-required="true">
                                            <form:option value="" label="请选择组织机构"/>
                                            <form:options items="${companyList}" itemLabel="orgName"
                                                          itemValue="id" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">省份：</label>
                                    <div class="col-sm-4">
                                        <form:select path="province" itemLabel="label" itemValue="value" class="form-control" data-parsley-required="true">
                                            <form:option value="" label="请选择省份"/>
                                            <form:options items="${fns:getDictList('province')}" itemLabel="label"
                                                          itemValue="id" htmlEscape="false"/>
                                        </form:select>
                                    </div>
                                </div>
                                 <div class="form-group">
                                    <label class="col-sm-2 control-label">目标类：</label>
                                    <div class="col-sm-4">
                                            <form:input path="targetClass" htmlEscape="false" class="form-control"  maxlength="100" data-parsley-required="true"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/med/orgVsProvince/index')">
                                </div>
                            </div>
                        </form:form>
                    </div>

                </div>
            </section>
        </div>
    </div>